package sg.edu.nus.dashboard.baseline.control.command
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import mx.rpc.IResponder;
	
	import sg.edu.nus.dashboard.baseline.control.business.ConfigureBaselineDelegate;
	import sg.edu.nus.dashboard.baseline.control.event.ConfigureBaselineEvent;

	public class ConfigureBaselineCommand implements ICommand, IResponder
	{
		public function execute(event:CairngormEvent):void
		{
			var d:ConfigureBaselineDelegate = new ConfigureBaselineDelegate(this);
			var e:ConfigureBaselineEvent = ConfigureBaselineEvent(event);
			
			d.configureBaseline(e.baselineVo);
		}
		
		public function result(data:Object):void
		{
		}
		
		public function fault(info:Object):void
		{
		
		}
	}
}